/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;

using JDCloudSDK.Core.Annotation;
using JDCloudSDK.Charge.Model;
using JDCloudSDK.Resourcetag.Model;

namespace JDCloudSDK.Edcps.Model
{

    /// <summary>
    ///  instanceSpec
    /// </summary>
    public class InstanceSpec
    {

        ///<summary>
        /// 可用区, 如 cn-east-tz1
        ///Required:true
        ///</summary>
        [Required]
        public string Az{ get; set; }
        ///<summary>
        /// 实例类型, 如 edcps.c.normal1
        ///Required:true
        ///</summary>
        [Required]
        public string DeviceType{ get; set; }
        ///<summary>
        /// 主机名
        ///</summary>
        public string Hostname{ get; set; }
        ///<summary>
        /// 镜像类型, 取值范围：standard
        ///Required:true
        ///</summary>
        [Required]
        public string ImageType{ get; set; }
        ///<summary>
        /// 操作系统类型ID
        ///Required:true
        ///</summary>
        [Required]
        public string OsTypeId{ get; set; }
        ///<summary>
        /// 系统盘RAID类型ID
        ///Required:true
        ///</summary>
        [Required]
        public string SysRaidTypeId{ get; set; }
        ///<summary>
        /// 数据盘RAID类型ID
        ///Required:true
        ///</summary>
        [Required]
        public string DataRaidTypeId{ get; set; }
        ///<summary>
        /// 子网ID
        ///</summary>
        public string SubnetId{ get; set; }
        ///<summary>
        /// 是否启用外网，取值范围：yes、no
        ///</summary>
        public string EnableInternet{ get; set; }
        ///<summary>
        /// 启用外网时弹性公网IP的计费模式，取值范围：prepaid_by_duration、postpaid_by_duration
        ///</summary>
        public string InternetChargeMode{ get; set; }
        ///<summary>
        /// 弹性公网IP加入的共享带宽ID
        ///</summary>
        public string BandwidthPackageId{ get; set; }
        ///<summary>
        /// 网络类型，取值范围：vpc
        ///Required:true
        ///</summary>
        [Required]
        public string NetworkType{ get; set; }
        ///<summary>
        /// 网络CIDR
        ///</summary>
        public string Cidr{ get; set; }
        ///<summary>
        /// 内网IP
        ///</summary>
        public string PrivateIp{ get; set; }
        ///<summary>
        /// 内网添加的别名IP范围
        ///</summary>
        public List<AliasIpInfo> AliasIps{ get; set; }
        ///<summary>
        /// 外网链路类型, 目前支持联通un、电信ct、移动cm
        ///</summary>
        public string LineType{ get; set; }
        ///<summary>
        /// 外网带宽, 范围[1,10240] 单位Mbps
        ///</summary>
        public int? Bandwidth{ get; set; }
        ///<summary>
        /// 额外上行带宽, 范围[0,10240] 单位Mbps
        ///</summary>
        public int? ExtraUplinkBandwidth{ get; set; }
        ///<summary>
        /// 云物理服务器名称
        ///Required:true
        ///</summary>
        [Required]
        public string Name{ get; set; }
        ///<summary>
        /// 云物理服务器描述
        ///</summary>
        public string Description{ get; set; }
        ///<summary>
        /// 密码，不传值会随机生成密码
        ///</summary>
        public string Password{ get; set; }
        ///<summary>
        /// 购买数量
        ///Required:true
        ///</summary>
        [Required]
        public int Count{ get; set; }
        ///<summary>
        /// 可执行脚本Base64编码后的内容，支持shell和python脚本
        ///</summary>
        public string UserData{ get; set; }
        ///<summary>
        /// 密钥对id
        ///</summary>
        public string KeypairId{ get; set; }
        ///<summary>
        /// 计费配置
        ///Required:true
        ///</summary>
        [Required]
        public ChargeSpec Charge{ get; set; }
        ///<summary>
        /// 网络接口模式，单网口:bond、双网口:dual
        ///</summary>
        public string InterfaceMode{ get; set; }
        ///<summary>
        /// 辅网口子网ID
        ///</summary>
        public string ExtensionSubnetId{ get; set; }
        ///<summary>
        /// 辅网口手动分配的内网ip
        ///</summary>
        public string ExtensionPrivateIp{ get; set; }
        ///<summary>
        /// 辅网口内网添加的别名IP范围
        ///</summary>
        public List<AliasIpInfo> ExtensionAliasIps{ get; set; }
        ///<summary>
        /// 辅网口是否启用外网，取值范围：yes、no
        ///</summary>
        public string ExtensionEnableInternet{ get; set; }
        ///<summary>
        /// 辅网口链路类型, 目前支持联通un、电信ct、移动cm
        ///</summary>
        public string ExtensionLineType{ get; set; }
        ///<summary>
        /// 辅网口外网带宽，范围[1,10240] 单位Mbps
        ///</summary>
        public int? ExtensionBandwidth{ get; set; }
        ///<summary>
        /// 辅网口额外上行带宽, 范围[0,10240] 单位Mbps
        ///</summary>
        public int? ExtensionExtraUplinkBandwidth{ get; set; }
        ///<summary>
        /// 辅网口启用外网时弹性公网IP的计费模式，取值范围：prepaid_by_duration、postpaid_by_duration
        ///</summary>
        public string ExtensionInternetChargeMode{ get; set; }
        ///<summary>
        /// 辅网口弹性公网IP加入的共享带宽ID
        ///</summary>
        public string ExtensionBandwidthPackageId{ get; set; }
        ///<summary>
        /// 标签
        ///</summary>
        public List<Tag> ResourceTags{ get; set; }
    }
}
